<?php
if (!isset($_GET["url"]) ) {
	exit;
}

$SRC_FILE = $_GET["url"];
$download_size = filesize($SRC_FILE);
$filename = basename($SRC_FILE);
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: private");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$filename");
header("Accept-Ranges: bytes");
header("Content-Length: $download_size");
@readfile($SRC_FILE);
?>